package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.system.entity.ParcelCenterCo;
import io.geekidea.springbootplus.system.param.ParcelCenterCoPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.system.vo.ParcelCenterCoQueryVo;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.List;
import java.io.Serializable;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

/**
 *  服务类
 *
 * @author miko
 * @since 2020-10-24
 */
public interface ParcelCenterCoService extends BaseService<ParcelCenterCo> {

    /**
     * 保存
     *
     * @param parcelCenterCo
     * @return
     * @throws Exception
     */
    boolean saveParcelCenterCo(ParcelCenterCo parcelCenterCo) throws Exception;

    /**
     * 修改
     *
     * @param parcelCenterCo
     * @return
     * @throws Exception
     */
    boolean updateParcelCenterCo(ParcelCenterCo parcelCenterCo) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteParcelCenterCo(Long id) throws Exception;

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     * @throws Exception
     */
    ParcelCenterCoQueryVo getParcelCenterCoById(Serializable id) throws Exception;


    List<ParcelCenterCo> getAllList(LambdaQueryWrapper<ParcelCenterCo> wrapper) throws Exception;

    /**
     * 获取分页对象
     *
     * @param parcelCenterCoQueryParam
     * @return
     * @throws Exception
     */
    Paging<ParcelCenterCoQueryVo> getParcelCenterCoPageList(ParcelCenterCoPageParam parcelCenterCoPageParam) throws Exception;


}
